<?
/*

@class		form_element_textField
@author		Jelle Versele
@email		me@jelleversele.be

stelt een textfield object voor

*/ 

require_once('form/element.class.php');


class form_element_textField extends form_element{
	
	/*
	instantie aanmaken
	@param string
	*/
	public function __construct($iName){
		
		parent::__construct($iName);
		
		$this -> html = new view_htmlTag('input');
		
		$this -> html -> setAttribute('type', 'text');
		$this -> html -> setAttribute('name', $iName);
		$this -> html -> setAttribute('id', $iName);
		$this -> html -> setToShortTag();
		
	
	}
	
	/*
	@methode	readonly maken
	*/
	public function readOnly(){
	
		$this -> html -> setAttribute('readonly', 'readonly');
	
	}
	
	/*
	@methode	hidden maken
	*/
	public function setToHidden(){
	
		$this -> html -> setAttribute('type', 'hidden');
	}
	
	/*
	@methode	paswoord chars...
	*/
	public function setToPassword(){
	
		$this -> html -> setAttribute('type', 'password');
	
	}
	



}


?>